package ics.example;

import ics.nodes.VEvent;
import ics.nodes.event.*;

import java.util.Date;

public class Event extends VEvent {
    public Event() {
        String begin = "2023/2/23 12:01:01";
        String end = "2023/2/23 13:00:00";
        DTStart DTStart = new DTStart(new Date(begin));
        DTEnd DTEnd = new DTEnd(new Date(end));
        add(new DTStamp());
        add(DTStart);
        add(DTEnd);
        add(new UId());
        add(new Summary("测试标题"));
        add(new Description("今天要做的事情\n- 吃饭\n- 睡觉"));
        add(new TZId());
        add(new Location("三实验楼"));
    }
}
